﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true"
    CodeFile="start-topic.aspx.cs" Inherits="start_topic" ValidateRequest="true" %>
<%@ Register src="Controls/wucPostUser.ascx" tagname="wucPostUser" tagprefix="uc1" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="cc1" %>

<%@ Register src="Controls/wucPostWriter.ascx" tagname="wucPostWriter" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   <script src="Javascripts/JQuery/jquery-1.3.2.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="Server">
    <table width="100%" border="0">
        <tr class="PostCategory">
            <td style="padding-left:5px;">
                <asp:Literal ID="litCategory" runat="server" Text="Start New Topic"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td>
                <div id="divPreview" runat="server" style="width:100%;" >
                    <table border="0" width="100%">
                        <tr>
                            <td style="background-color: #2F2F2F; width:20%;" align="left" valign="top">
                            
                                <uc1:wucPostUser ID="wucPostUser1" runat="server" UserID="<%# Jalal.Library.Web.SessionManager.LoggedUser.Id.ToString() %>" ShowTotalForumPosts="true" ShowTotalMarketPosts="false" />
                            </td>
                            <td style="background-color: #2F2F2F; width:80%;" align="left" valign="top">
                                <table>
                                    <tr>
                                        <td style="background-color: Black;">
                                            <asp:Literal ID="litPostDate" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 150px;" align="left" valign="top">
                                            <asp:Literal ID="litPostContent" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <table width="100%" border="0" class="StartTopic" cellpadding="0" cellspacing="5">
                    <tr>
                        <td align="left" valign="top">
                            <asp:ValidationSummary ID="valSummary" runat="server" DisplayMode="BulletList" ShowSummary="true"
                                HeaderText="Error:" CssClass="ErrorSummary" />
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <cc1:ResponseMessage ID="rmResult" runat="server"></cc1:ResponseMessage>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            Topic
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <asp:TextBox ID="txtSubject" runat="server" Width="98%" MaxLength="100"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvTopic" ControlToValidate="txtSubject" Display="None"
                                runat="server" ErrorMessage="Topic titles must be between 5 and 80 characters."></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            Message
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <uc1:wucPostWriter ID="wucPostWriter1" runat="server" />
                         
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            Tag
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <asp:TextBox ID="txtTag" runat="server" Width="98%" MaxLength="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="PostButton" OnClick="btnReset_Click" />
                            <asp:Button ID="btnPreview" runat="server" Text="Preview" CssClass="PostButton" OnClick="btnPreview_Click" />
                           <asp:Button ID="btnInstruction" runat="server" Text="Instruction" CssClass="PostButton" OnClientClick="javascript:ShowHideDiv();return false;" />
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="PostButton" OnClick="btnSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
   
   <div id="divInstruction" style="width:100%; background-color:Black; color:#CE600E; font-size:12px; font-weight:bold;" >
   <ul>
   <li>Messages cannot be blank. Ensure your post contains non-whitespace characters and does not consist solely of formatted or quoted text.</li>
   <li>Only line break and Image link insertion is allowed</li>
   <li>For inserting line break use [br/] <br />
   For Example Use:<br />
   This is forum text1
   <font style="color:Green;">[br/] </font>
   This is forum text2
   </li>
   <li>For inserting image use [img][imagelink][/img]<br />
   For Example Use:<br />
   <font style="color:Green;">[img][http://localhost:5931/BCGC-Web/App_Themes/UserDefault/image/header.jpg][/img]</font>
   
   </li>
   </ul>
   </div>
    
     <script type="text/javascript">
    $("#divInstruction").hide();   
         
    
    function ShowHideDiv()
    {   
        var divInstruction = $("#divInstruction");
      
        divInstruction.slideToggle("slow");

    }
    
    
    
  
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="Server">
</asp:Content>
